package org.yogurtcat.server.modules.resourcemanage.service;

import java.util.Optional;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.yogurtcat.server.modules.resourcemanage.domain.Resource;

public interface ResourceService {
	
	Page<Resource> list(Optional<Resource> condition, Pageable pageable);

	Resource save(Resource data);

	void delete(Resource data);

	Resource findById(Long id);
}
